(insert-image-file): When visiting an image, set `truncate-lines' to t
authorMiles Bader <miles@gnu.org>
Mon, 5 Feb 2001 04:08:26 +0000 (04:08 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 5 Feb 2001 04:08:26 +0000 (04:08 +0000)
so that any fringe arrow looks correct.

lisp/image-file.el

index afee88d1346326eec5fed7a1da90944da2eddff8..052cea8232b65dc112e8ec0dde820f822e53d1b8 100644 (file)
@@ -1,6 +1,6 @@
 ;;; image-file.el --- Support for visiting image files
 ;;
-;; Copyright (C) 2000 Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2001 Free Software Foundation, Inc.
 ;;
 ;; Author: Miles Bader <miles@gnu.org>
 ;; Keywords: multimedia
@@ -129,7 +129,10 @@ the command `insert-file-contents'."
        (when visitingp
          ;; Inhibit the cursor when the buffer contains only an image,
          ;; because cursors look very strange on top of images.
-         (setq cursor-type nil))))
+         (setq cursor-type nil)
+         ;; This just makes the arrow displayed in the right fringe
+         ;; area look correct when the image is wider than the window.
+         (setq truncate-lines t))))
     rval))
 
 (defun image-file-handler (operation &rest args)